import 'package:flutter/material.dart';

///**
///* @author hrongyong
///* @date   2/24/21
///* @email hrongyong@gmail.com
///* Description: SingleHistogramChartWidgetModel
///*/
class SingleHistogramChartWidgetModel {
  ///标题
  String name;

  ///直方图比例
  double histogramScale;

  ///直方图描述
  String description;

  SingleHistogramChartWidgetModel({@required this.name, this.histogramScale = 0.0, this.description = ""}) {
    if (this.histogramScale != null) {
      if (this.histogramScale > 1.0) {
        this.histogramScale = 1.0;
      }
      if (this.histogramScale < 0.0) {
        this.histogramScale = 0.0;
      }
    }
  }
}
